import request from '/@/utils/request';

export function useTemuLirunApi() {
    return {
        temuLirunProductList: (data: object) => {
            return request({
                url: '/api/calculate/lirun/temu/product/list',
                method: 'post',
                data,
            });
        },

        deleteTemuLirunProduct: (data: object) => {
            return request({
                url: '/api/calculate/lirun/temu/product/delete',
                method: 'post',
                data,
            });
        },

        temuLirunProductDetail: (data: object) => {
            return request({
                url: '/api/calculate/lirun/temu/product/detail',
                method: 'post',
                data,
            });
        },

        editTemuLirunProduct: (data: object) => {
            return request({
                url: '/api/calculate/lirun/temu/product/edit',
                method: 'post',
                data,
            });
        },

        temuLirunProductInstanceList: (data: object) => {
            return request({
                url: '/api/calculate/lirun/temu/instance/list',
                method: 'post',
                data,
            });
        },

        saveTemuLirunProductForm: (data: object) => {
            return request({
                url: '/api/calculate/lirun/temu/instance/save',
                method: 'post',
                data,
            });
        },

        deleteTemuLirunProductForm: (data: object) => {
            return request({
                url: '/api/calculate/lirun/temu/instance/delete',
                method: 'post',
                data,
            });
        },

        addTemuLirunForm: (data: object) => {
            return request({
                url: '/api/calculate/lirun/temu/instance/addForm',
                method: 'post',
                data,
            });
        },

        calculateTemuLirunProductForm: (data: object) => {
            return request({
                url: '/api/calculate/lirun/temu/instance/calculate',
                method: 'post',
                data,
            });
        },
    };
}